package d1106.r211.num16;

public class Person {

    private  String  name;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;

    }
    public  void howToPlay(Football football){
        System.out.print(this.name+"在");
        football.play();
    }
    public  void howToPlay(Basketball basketball){
        System.out.print(this.name+"在");
        basketball.play();
    }
    public  void howToPlay(Lambda lambda){
        System.out.print(this.name+"在");
        lambda.play();
}}

